﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExportToRTR.YAML.IgnoreString
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using YamlDotNet.Core;
using YamlDotNet.Serialization;


namespace DnProcessSimulateCommands.ExportToRTR.YAML;

public class IgnoreString : IYamlConvertible, IIgnoreObjFlowForamt
{
  public string link;

  public IgnoreString()
  {
  }

  public IgnoreString(string linkName) => this.link = linkName;

  public void Read(IParser parser, Type expectedType, ObjectDeserializer nestedObjectDeserializer)
  {
    this.link = (string) nestedObjectDeserializer.Invoke(typeof (string));
  }

  public void Write(IEmitter emitter, ObjectSerializer nestedObjectSerializer)
  {
    nestedObjectSerializer.Invoke((object) this.link, (Type) null);
  }
}
